package com.rjj.wlqq.importExcel;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 进度条实体类
 */
public class Progress {
    private Logger log = LoggerFactory.getLogger(Progress.class);

    public static final String PROGRESS_ = "progress_";

    private static Map<String, Object> progress = new ConcurrentHashMap<>();

    public void set(String key, Object val){
        log.info("存进度条的key:" + key + " 存进度条的值：" + val);
        progress.put(key,val);
    }

    public Object get(String key){
        log.info("获取进度条的key" + key);
        return progress.get(key);
    }

}
